home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / Zend / zend_language_scanner.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-29  |  1.8 KB  |  57 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | Zend Engine                                                          |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1998-2000 Zend Technologies Ltd. (http://www.zend.com) |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 0.92 of the Zend license,     |
  8.    | that is bundled with this package in the file LICENSE, and is        | 
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.zend.com/license/0_92.txt.                                |
  11.    | If you did not receive a copy of the Zend license and are unable to  |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@zend.com so we can mail you a copy immediately.              |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Andi Gutmans <andi@zend.com>                                |
  16.    |          Zeev Suraski <zeev@zend.com>                                |
  17.    +----------------------------------------------------------------------+
  18. */
  19.  
  20.  
  21. #ifndef ZEND_SCANNER_H
  22. #define ZEND_SCANNER_H
  23.  
  24. #ifdef ZTS
  25. class ZendFlexLexer : public yyFlexLexer
  26. {
  27. public:
  28.     virtual ~ZendFlexLexer();
  29.     int lex_scan(zval *zendlval CLS_DC);
  30.     void BeginState(int state);
  31. };
  32.  
  33. #endif    /* ZTS */
  34.  
  35.  
  36. typedef struct _zend_lex_state {
  37. #ifndef ZTS
  38.     YY_BUFFER_STATE buffer_state;
  39.     int state;
  40.     FILE *in;
  41. #else
  42.     ZendFlexLexer *ZFL;
  43.     istream *input_file;
  44. #endif
  45.     uint lineno;
  46.     char *filename;
  47. } zend_lex_state;
  48.  
  49.  
  50. void zend_fatal_scanner_error(char *);
  51. inline void restore_lexical_state(zend_lex_state * CLS_DC);
  52. BEGIN_EXTERN_C()
  53. int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
  54. END_EXTERN_C()
  55.  
  56. #endif
  57.